.class public Lcom/instagram/android/fragment/cq;
.super Lcom/instagram/e/b/c;
.source "FindFriendsFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private Z:Landroid/os/Handler;

.field private final aa:Lcom/instagram/android/fragment/cx;

.field private i:Lcom/instagram/ui/d/h;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 39
    invoke-direct {p0}, Lcom/instagram/e/b/c;-><init>()V

    .line 45
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/fragment/cq;->Z:Landroid/os/Handler;

    .line 46
    new-instance v0, Lcom/instagram/android/fragment/cx;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/fragment/cx;-><init>(Lcom/instagram/android/fragment/cq;Lcom/instagram/android/fragment/cr;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/cq;->aa:Lcom/instagram/android/fragment/cx;

    .line 142
    return-void
.end method

.method private X()V
    .locals 3

    .prologue
    .line 179
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    .line 180
    sget v1, Lcom/facebook/ba;->confirm_find_friends:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->allow:I

    new-instance v2, Lcom/instagram/android/fragment/ct;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ct;-><init>(Lcom/instagram/android/fragment/cq;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->cancel:I

    new-instance v2, Lcom/instagram/android/fragment/cs;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/cs;-><init>(Lcom/instagram/android/fragment/cq;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 198
    return-void
.end method

.method private Y()V
    .locals 2

    .prologue
    .line 223
    iget-object v0, p0, Lcom/instagram/android/fragment/cq;->Z:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/fragment/cu;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/cu;-><init>(Lcom/instagram/android/fragment/cq;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 229
    return-void
.end method

.method private Z()V
    .locals 2

    .prologue
    .line 232
    iget-object v0, p0, Lcom/instagram/android/fragment/cq;->Z:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/fragment/cv;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/cv;-><init>(Lcom/instagram/android/fragment/cq;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 241
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/cq;)V
    .locals 0
    .parameter

    .prologue
    .line 39
    invoke-direct {p0}, Lcom/instagram/android/fragment/cq;->X()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/cq;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 39
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/cq;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 244
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/fragment/hz;->a(Ljava/lang/String;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->d()Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 248
    return-void
.end method

.method private aa()V
    .locals 2

    .prologue
    .line 258
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->a()Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 261
    return-void
.end method

.method private ab()V
    .locals 2

    .prologue
    .line 264
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->b()Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->d()Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 268
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/cq;)Lcom/instagram/android/fragment/cx;
    .locals 1
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/instagram/android/fragment/cq;->aa:Lcom/instagram/android/fragment/cx;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/fragment/cq;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 39
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/cq;->b(Ljava/lang/String;)V

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 251
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/fragment/hz;->b(Ljava/lang/String;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->d()Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 255
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/fragment/cq;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/instagram/android/fragment/cq;->Z:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/fragment/cq;)V
    .locals 0
    .parameter

    .prologue
    .line 39
    invoke-direct {p0}, Lcom/instagram/android/fragment/cq;->ab()V

    return-void
.end method

.method static synthetic e(Lcom/instagram/android/fragment/cq;)V
    .locals 0
    .parameter

    .prologue
    .line 39
    invoke-direct {p0}, Lcom/instagram/android/fragment/cq;->aa()V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 52
    sget v0, Lcom/facebook/ax;->layout_listview:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 53
    sget v1, Lcom/facebook/at;->gray_background:I

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 54
    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 272
    new-instance v0, Lcom/instagram/android/fragment/cw;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/cw;-><init>(Lcom/instagram/android/fragment/cq;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 202
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 203
    sparse-switch p1, :sswitch_data_0

    .line 211
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 214
    iget-object v1, p0, Lcom/instagram/android/fragment/cq;->aa:Lcom/instagram/android/fragment/cx;

    invoke-virtual {v0, v1}, Lcom/facebook/a/b;->a(Lcom/facebook/a/e;)V

    .line 215
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    .line 219
    :cond_0
    :goto_0
    invoke-super {p0, p1, p2, p3}, Lcom/instagram/e/b/c;->a(IILandroid/content/Intent;)V

    .line 220
    return-void

    .line 205
    :sswitch_0
    invoke-direct {p0}, Lcom/instagram/android/fragment/cq;->Y()V

    goto :goto_0

    .line 208
    :sswitch_1
    invoke-direct {p0}, Lcom/instagram/android/fragment/cq;->Z()V

    goto :goto_0

    .line 203
    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x5 -> :sswitch_1
    .end sparse-switch
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 59
    invoke-super {p0, p1}, Lcom/instagram/e/b/c;->a(Landroid/os/Bundle;)V

    .line 61
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 62
    new-instance v1, Lcom/instagram/ui/d/b;

    sget v2, Lcom/facebook/ba;->find_friends_item_from_my_contact_list:I

    invoke-direct {v1, v2}, Lcom/instagram/ui/d/b;-><init>(I)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 64
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/android/w/a;->a(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 65
    new-instance v1, Lcom/instagram/ui/d/b;

    sget v2, Lcom/facebook/ba;->find_friends_item_vkontakte_friends:I

    invoke-direct {v1, v2}, Lcom/instagram/ui/d/b;-><init>(I)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 68
    :cond_0
    new-instance v1, Lcom/instagram/ui/d/b;

    sget v2, Lcom/facebook/ba;->find_friends_item_facebook_friends:I

    invoke-direct {v1, v2}, Lcom/instagram/ui/d/b;-><init>(I)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 70
    new-instance v1, Lcom/instagram/ui/d/c;

    invoke-direct {v1}, Lcom/instagram/ui/d/c;-><init>()V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 71
    new-instance v1, Lcom/instagram/ui/d/b;

    sget v2, Lcom/facebook/ba;->find_friends_item_suggested_users:I

    invoke-direct {v1, v2}, Lcom/instagram/ui/d/b;-><init>(I)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 72
    new-instance v1, Lcom/instagram/ui/d/b;

    sget v2, Lcom/facebook/ba;->find_friends_item_search_names_and_usernames:I

    invoke-direct {v1, v2}, Lcom/instagram/ui/d/b;-><init>(I)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 74
    new-instance v1, Lcom/instagram/ui/d/h;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/instagram/ui/d/h;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/instagram/android/fragment/cq;->i:Lcom/instagram/ui/d/h;

    .line 75
    iget-object v1, p0, Lcom/instagram/android/fragment/cq;->i:Lcom/instagram/ui/d/h;

    invoke-virtual {v1, v0}, Lcom/instagram/ui/d/h;->a(Ljava/util/Collection;)V

    .line 76
    iget-object v0, p0, Lcom/instagram/android/fragment/cq;->i:Lcom/instagram/ui/d/h;

    invoke-virtual {p0, v0}, Lcom/instagram/android/fragment/cq;->a(Landroid/widget/ListAdapter;)V

    .line 77
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 81
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/c;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 82
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->j_()Landroid/widget/ListView;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/facebook/at;->gray_background:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 85
    return-void
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 89
    invoke-super {p0, p1}, Lcom/instagram/e/b/c;->d(Landroid/os/Bundle;)V

    .line 91
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cq;->j_()Landroid/widget/ListView;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/fragment/cr;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/cr;-><init>(Lcom/instagram/android/fragment/cq;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 140
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 303
    const-string v0, "find_friends"

    return-object v0
.end method
